GBML manual / Backgrounds

EDGE_EMPTY

Nothing past the edge: the screen’s own color shows. The same as background_repeat(bg, false).

Works differently on Game Boy - The Game Boy decides what a picture shows past its edge when the game is built (see background_edge); the choice is read from the plain name written in the call.

Works differently on Game Boy Color - The Game Boy Color decides what a picture shows past its edge when the game is built (see background_edge); the choice is read from the plain name written in the call.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

EDGE_EMPTY: constant

Description

Names the edge where nothing shows past the picture: the screen's own color, for background_edge. It is the same as background_repeat with false.

Example

backdrop = background_create(0, 0, ts_doc_dungeon);
background_edge(backdrop, EDGE_EMPTY);

Makes the background stop at its picture's edge.

See also: background_edgebackground_repeat